package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.api.platform.dto.it.ServerDeviceExportFull;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;


public class ServerRowMapperFull implements RowMapper<ServerDeviceExportFull> {

    @Override
    public ServerDeviceExportFull mapRow(ResultSet rs, int rowNum) throws SQLException {
        ServerDeviceExportFull serverDeviceExportFull = new ServerDeviceExportFull();
        serverDeviceExportFull.setDevId(rs.getString("dev_id"));
        serverDeviceExportFull.setBusinessName(rs.getString("business_name"));
        serverDeviceExportFull.setNetworkSegment(rs.getString("network_segment"));
        serverDeviceExportFull.setApplicationDetail(rs.getString("application_detail"));
        serverDeviceExportFull.setMachineRoom(rs.getString("machine_room"));
        serverDeviceExportFull.setMachineCab(rs.getString("machine_cab"));
        serverDeviceExportFull.setMachineUnit(rs.getString("machine_unit"));
        serverDeviceExportFull.setCapitalType(rs.getString("capital_type"));
        serverDeviceExportFull.setCapitalTyped(rs.getString("capital_typed"));
        serverDeviceExportFull.setBrand(rs.getString("brand"));
        serverDeviceExportFull.setCapitalStyle(rs.getString("capital_style"));
        serverDeviceExportFull.setBrandType(rs.getString("brand_type"));
        serverDeviceExportFull.setIp1(rs.getString("ip1"));
        serverDeviceExportFull.setIp2(rs.getString("ip2"));
        serverDeviceExportFull.setSn(rs.getString("sn"));
        serverDeviceExportFull.setOperationSys(rs.getString("operation_sys"));
        serverDeviceExportFull.setIlo(rs.getString("ilo"));
        serverDeviceExportFull.setName(rs.getString("name"));
        serverDeviceExportFull.setDepartment(rs.getString("department"));
        serverDeviceExportFull.setCcTime(rs.getString("cc_time"));
        serverDeviceExportFull.setWbTime(rs.getString("wb_time"));
        serverDeviceExportFull.setMachineStatus(rs.getString("machine_status"));
        serverDeviceExportFull.setSjTime(rs.getString("sj_time"));
        serverDeviceExportFull.setPnPid(rs.getString("pn_pid"));
        serverDeviceExportFull.setCpu(rs.getString("cpu"));
        serverDeviceExportFull.setMemory(rs.getString("memory"));
        serverDeviceExportFull.setPlanOn(rs.getString("plan_on"));
        serverDeviceExportFull.setSupportPower(rs.getString("support_power"));
        serverDeviceExportFull.setBz(rs.getString("bz"));
        serverDeviceExportFull.setMac1(rs.getString("mac1"));
        serverDeviceExportFull.setMac2(rs.getString("mac2"));
        serverDeviceExportFull.setMac3(rs.getString("mac3"));
        serverDeviceExportFull.setMac4(rs.getString("mac4"));
        serverDeviceExportFull.setMac5(rs.getString("mac5"));
        serverDeviceExportFull.setMac6(rs.getString("mac6"));
        serverDeviceExportFull.setMac7(rs.getString("mac7"));
        serverDeviceExportFull.setMac8(rs.getString("mac8"));
        serverDeviceExportFull.setMac9(rs.getString("mac9"));
        serverDeviceExportFull.setMac10(rs.getString("mac10"));
        serverDeviceExportFull.setMac11(rs.getString("mac11"));
        serverDeviceExportFull.setMac12(rs.getString("mac12"));
        serverDeviceExportFull.setIp3(rs.getString("ip3"));
        serverDeviceExportFull.setIp4(rs.getString("ip4"));
        serverDeviceExportFull.setQj(rs.getString("qj"));
        serverDeviceExportFull.setFixRecord(rs.getString("fix_record"));
        serverDeviceExportFull.setFixTime(rs.getString("fix_time"));


        return serverDeviceExportFull;
    }
}
